package cn.entity;


import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

//新闻信息的JavaBean
public class News4 implements HttpSessionBindingListener {
	//新闻属性
	private int id;

	private String userName;

	private String password;
	private String email;
	private int userType;
	public News4(){

	}

	public News4(String userName, String password) {
		this.userName = userName;
		this.password = password;
	}
	//setter以及getter


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}

	@Override
	public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent) {
		Count.count++;
	}

	@Override
	public void valueUnbound(HttpSessionBindingEvent httpSessionBindingEvent) {
		Count.count--;

	}
}
